<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Precios_model extends CI_Model {

	function __construct()
	{
		parent::__construct();
	}

	public function modificaPrecios()
	{
		$data = array('precio'=>$_POST['precio'], 'descuento'=>$_POST['descuento']);
		$this->db->update("precios", $data, array("id_precio"=>$_POST['id_precio']));
		
		return TRUE;
	}

}

/* End of file precios_model.php */
/* Location: ./application/models/precios_model.php */
